package edu.unh.sustain;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class TransportationActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.transportation);
	    
	    Button schedules = (Button) findViewById(R.id.schedules);
	    schedules.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), ScheduleActivity.class);
                startActivityForResult(myIntent, 0);
            }
        });
	    
	    Button plantrip = (Button) findViewById(R.id.plan_a_trip);
	    plantrip.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), TripPlannerActivity.class);
                startActivityForResult(myIntent, 0);
            }
        });
	    
	    Button zipcar = (Button) findViewById(R.id.unh_zipcars);
	    zipcar.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), ZipcarActivity.class);
                startActivityForResult(myIntent, 0);
            }
        });
	}
}
